package com.ysd.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ysd.entity.Common;
import com.ysd.service.CommonService;

@Controller
public class CommonController {
		
	
	@Autowired
	private CommonService commonService;
	
	
	@RequestMapping("getCommon")
	@ResponseBody
	public List<Common> getCommon(int bookId) {
		List<Common>	c=commonService.findCommon(bookId);
		return c;
	}
}
